package joonany.basic.j03;

import java.util.Scanner;

public class J03_Expression23 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x, y, z;
			
		System.out.println("x 값을 입력 하세요 : ");
		x = sc.nextInt();
		System.out.println("y 값을 입력 하세요 : ");
		y = sc.nextInt();
		
		sc.close();
		
		if(x > 2){
			if(y > 2){z = x + y; System.out.println("z is " + z); }
		}else System.out.println("x is " + x);
		
		//가. x = 3; y = 2; 나. x = 3; y = 4; 다. x = 2; y = 2;
	}

}
